<template>
  <div class="ysHeader">
     <div class="left">
        <slot name='left'></slot>
      </div>
      <div class="center">{{title}}</div>
      <div class="right">
        <slot name='right'></slot>
      </div>
  </div>
</template>

<script>
export default {
  props: {
   title: {
     type: String,
     default: '图文资讯'
   }
 }
}
</script>

<style lang="less" scoped>
.ysHeader {
  margin-top: 5px;
   height: 50px;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  align-items: center;
  background-color: #f7f7f7;
  border-bottom: 1px solid rgba(134, 131, 131, 0.808);
  
}
</style>

